package com.cn.jiyun.contoller;

import com.cn.jiyun.service.CarouselImagesService;
import com.cn.jiyun.entity.pojo.CarouselImages;
import com.jiyun.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("carouselImages")
public class CarouselImagesController {

    @Autowired
    private CarouselImagesService carouselImagesService;


    @GetMapping("lunboUrl")
    public Result<List<CarouselImages>> lunboUrl(){
        return Result.ok(carouselImagesService.lunboUrl());
    }
}
